(split_font_name): Make sure to leave the loop
authorGerd Moellmann <gerd@gnu.org>
Mon, 14 May 2001 12:46:12 +0000 (12:46 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 14 May 2001 12:46:12 +0000 (12:46 +0000)
with the right value of `i'.

src/xfaces.c

index a50ec9ae2a9dcdd66c1a1f52c705bdf0ea2c85e1..93acc8b5317b988a25085f73305925c7b120b469 100644 (file)
@@ -2205,9 +2205,10 @@ split_font_name (f, font, numeric_p)
     {
       char *p = xstrlwr (font->name) + 1;
 
-      for (; i < XLFD_LAST; ++i)
+      while (i < XLFD_LAST)
        {
          font->fields[i] = p;
+         ++i;
 
          /* Pixel and point size may be of the form `[....]'.  For
             BNF, see XLFD spec, chapter 4.  Negative values are